//
//  UIView+Utils.m
//  AnhChe
//
//  Created by Nguyen Cong Huy on 7/31/14.
//  Copyright (c) 2014 Nguyen Cong Huy. All rights reserved.
//

#import "UIView+Utils.h"

@implementation UIView (Utils)

- (int)width {
    return self.frame.size.width;
}

- (int)height {
    return self.frame.size.height;
}

- (int)left {
    return self.frame.origin.x;
}

- (int)right {
    return self.left + self.width;
}

- (int)top {
    return self.frame.origin.y;
}

- (int)bottom {
    return self.top + self.height;
}

@end
